﻿using Autofac;

namespace OS.Infrastructure.Common
{
    public static class IoC
    {
        private static IContainer _container;

        public static void Init(IContainer container)
        {
            _container = container;
        }

        public static TService Resolve<TService>()
        {
            return _container.Resolve<TService>();
        }
    }
}